import java.time.*;
import java.util.*;
import java.util.stream.Collectors;
import java.io.*;
class Movie implements Serializable {
    private String title;
    private String director;
    private String actors;
    private String description;
    private int duration;
    private float rating;

    public Movie(String title, String director, String actors, String description, int duration, float rating) {
        this.title = title;
        this.director = director;
        this.actors = actors;
        this.description = description;
        this.duration = duration;
        this.rating = rating;
    }

    public String getTitle() { return title; }
    public String getDirector() { return director; }
    public String getActors() { return actors; }
    public String getDescription() { return description; }
    public int getDuration() { return duration; }
    public float getRating() { return rating; }

    public void setTitle(String title) { this.title = title; }
    public void setDirector(String director) { this.director = director; }
    public void setActors(String actors) { this.actors = actors; }
    public void setDescription(String description) { this.description = description; }
    public void setDuration(int duration) { this.duration = duration; }
    public void setRating(float rating) { this.rating = rating; }

    @Override
    public String toString() {
        return String.format("片名: %s\n导演: %s\n主演: %s\n时长: %d分钟\n评分: %.1f\n剧情简介: %s",
                title, director, actors, duration, rating, description);
    }
}